<%--
  Created by IntelliJ IDEA.
  User: 谢兴鑫
  Date: 2022/5/9
  Time: 上午 09:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--
  Created by IntelliJ IDEA.hhh
  User: 谢兴鑫
  Date: 2022/5/7
  Time: 下午 03:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>办公管理后台</title>
    <meta charset="utf-8">
    <link rel="shortcut icon" th:href="./images/favicon.ico" type="image/x-icon">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <!-- 引入css -->
    <link rel="stylesheet"
          href="${pageContext.request.contextPath}/static/css/plugins/font-awesome-4.7.0/css/font-awesome.css"
          media="all">
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/js/jquery-3.5.1.min.js"></script>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/layui/css/layui.css" media="all">
    <script src="${pageContext.request.contextPath}/static/layui/layui.js" charset="utf-8"></script>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/main.css" media="all">


    <script type="text/javascript">
        layui.use(['element', 'jquery'], function () {
            var element = layui.element, $ = layui.jquery;
            $(document).on("click", 'a', function () {
                if (!$(this)[0].hasAttribute("tab_id") || $(this).attr("tab_id") == '') {
                    return;
                }
                var layid = $(this).attr("tab_id");
                var text = $(this).text();
                var dataurl = $(this).attr("data-url");
                var tabs = $(".layui-tab-title").children();
                var flag = true;   //判断右侧是否已经有了该选项卡，有了就不生成了
                $.each(tabs, function (i, item) {
                    var tabid = $(item).attr("lay-id");
                    if (tabid == layid) { //如果已经打开了这个标签
                        flag = false;
                    }
                });
                if (flag) {
                    element.tabAdd('mytab', {
                        title: text,
                        content: "<iframe frameborder=0 style='width:100%;height:100%;'  src='" + dataurl + "' />",
                        id: layid
                    });
                }

                //让点击的选项卡选中
                element.tabChange('mytab', layid);
            });

            // 退出登录
            function logout() {
                $.ajax({
                    async: false,
                    type: "POST",
                    url: '${pageContext.request.contextPath}/login/logout',
                    contentType: "application/x-www-form-urlencoded; charset=utf-8",
                    dataType: "text",
                    complete: function () {
                        window.location.reload();
                    }
                })
            }

        });

    </script>

</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <!-- 导航栏 -->
    <div class="layui-header">
        <a href="#" class="layui-logo">
            <span class="layui-logo-mini">办公管理后台</span>
            <span class="layui-logo-lg">办公管理后台</span>
        </a>
        <a class="side-toggle layui-layout-left" href="#">
            <i class="layui-icon layui-icon-shrink-right"></i>
            <i class="layui-icon layui-icon-spread-left"></i>
        </a>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a class="timo-screen-full" href="#">
                    <i class="fa layui-icon layui-icon-screen-full"></i>
                </a>
            </li>
            <li class="layui-nav-item timo-nav-user">
                <a class="timo-header-nickname">${sessionScope.emp.empName}<span class="layui-nav-more"></span></a>
                <div class="layui-nav-child layui-anim layui-anim-upbit">
                    <div class="timo-nav-child-box">
                        <div><a href="#"
                                data-title="个人信息" tab_id="36"
                                data-url="${pageContext.request.contextPath}/nummsg/gonummsg?empId=${sessionScope.empID}"><!--
              --><i class="fa fa-user-o"></i>个人信息</a></div>
<%--                        <div><a class="open-popup" data-title="修改密码" data-size="456,295" data-url="404.html"><!----%>
<%--              --><i class="fa fa-lock" style="font-size:17px;width:12px;"></i>修改密码</a></div>--%>
                        <div><a href="${pageContext.request.contextPath}/login/goexit"><i class="fa fa-power-off"></i>退出登录</a>
                        </div>
                    </div>
                </div>
            </li>
        </ul>
    </div>

    <!-- 侧边栏 -->
    <!-- 左侧栏 -->
    <div class="layui-side layui-bg-black">
        <div class="layui-side layui-bg-black">
            <!-- 垂直导航 -->
            <div class="layui-side-scroll">
                <div class="layui-side-user">
                    <img class="layui-side-user-avatar" src="${pageContext.request.contextPath}/static/images/face.webp"
                         alt="头像">
                    <div>
                        <p class="layui-side-user-name">${sessionScope.emp.empName}</p>
                        <p class="layui-side-user-designation">在线</p>
                    </div>
                </div>
                <ul class="layui-nav layui-nav-tree">
                    <li class="layui-nav-item">
                        <a href="#"><i class="layui-icon layui-icon-username"></i>个人主页</a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a href="#" data-url="${pageContext.request.contextPath}/holiday/goholiday"
                                   tab_id="1">员工请假</a>
                            </dd>
                            <dd><a href="#"
                                   data-url="${pageContext.request.contextPath}/holidaystudent/goholidaystudent"
                                   tab_id="2">学生请假
                            </a></dd>
                            <dd><a href="#" data-url="${pageContext.request.contextPath}/weeklys/goweekly"
                                   tab_id="3">我的周报
                            </a></dd>
                        </dl>
                    </li>

                    <li class="layui-nav-item">
                        <a href="#"><i class="layui-icon layui-icon-speaker"></i>通知公告</a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a href="#" data-url="${pageContext.request.contextPath}/notice/gonoticeMsgList"
                                   tab_id="4">公告发布</a>
                            </dd>
                        </dl>
                    </li>

                    <li class="layui-nav-item">
                        <a href="#"><i class="layui-icon layui-icon-group"></i>员工管理</a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a href="#" data-url="${pageContext.request.contextPath}/emp/toemp"
                                   tab_id="5">员工资料</a>
                            </dd>
                            <dd>
                                <a href="#" data-url="${pageContext.request.contextPath}/emp/toweekly"
                                   tab_id="6">周报管理
                                </a>
                            </dd>
                            <dd>
                                <a href="#" data-url="${pageContext.request.contextPath}/emp/tocord"
                                   tab_id="7">谈心记录
                                </a>
                            </dd>
                        </dl>
                    </li>

                    <li class="layui-nav-item">
                        <a href="#"><i class="layui-icon layui-icon-menu-fill"></i>教务管理</a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a href="#" data-url="${pageContext.request.contextPath}/stu/tostulist"
                                   tab_id="8">学生资料</a>
                            </dd>
                            <dd>
                                <a href="#" data-url="${pageContext.request.contextPath}/stu/tostuscorelist"
                                   tab_id="10">考试成绩
                                </a>
                            </dd>
                            <dd>
                                <a href="#" data-url="${pageContext.request.contextPath}/stu/tostureplyscore"
                                   tab_id="11">答辩成绩管理
                                </a>
                            </dd>
                            <dd>
                                <a href="#" data-url="${pageContext.request.contextPath}/stu/toclasslist"
                                   tab_id="12">班级管理
                                </a>
                            <dd>
                                <a href="#" data-url="${pageContext.request.contextPath}/stu/tobanjifp"
                                   tab_id="13">班级分配
                                </a>
                            </dd>
<%--                            <dd>--%>
<%--                                <a href="#" data-url="${pageContext.request.contextPath}/zhenx/goselectempmessage"--%>
<%--                                   tab_id="14">学籍班级--%>
<%--                                </a>--%>
<%--                            </dd>--%>
                            <dd>
                                <a href="#" data-url="${pageContext.request.contextPath}/stu/tolookctype"
                                   tab_id="15">课程类别
                                </a>
                            </dd>
                            <dd>
                                <a href="#" data-url="${pageContext.request.contextPath}/stu/tolookcourse"
                                   tab_id="16">课程管理
                                </a>
                            </dd>
                            <dd>
                                <a href="#" data-url="${pageContext.request.contextPath}/stu/tolooktrial"
                                   tab_id="17">试讲培训
                                </a>
                            </dd>
                            <dd>
                                <a href="#" data-url="${pageContext.request.contextPath}/stu/tolookweek"
                                   tab_id="18">值班管理
                                </a>
                            </dd>
                            <dd>
                                <a href="#" data-url="${pageContext.request.contextPath}/stu/tossfp"
                                   tab_id="19">宿舍分配
                                </a>
                            </dd>
                            </dd>
                        </dl>
                    </li>

                    <li class="layui-nav-item">
                        <a href="#"><i class="layui-icon layui-icon-util"></i>后勤管理</a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a href="#" data-url="${pageContext.request.contextPath}/houqing/sushetolist"
                                   tab_id="14">宿舍管理</a>
                            </dd>
                            <dd>
                                <a href="#" data-url="${pageContext.request.contextPath}/houqing/loudongtolist"
                                   tab_id="15">楼栋管理
                                </a>
                            </dd>
                            <dd>
                                <a href="#" data-url="${pageContext.request.contextPath}/houqing/weixiutolist"
                                   tab_id="16">维修模块
                                </a>
                            </dd>
                        </dl>
                    </li>

                    <li class="layui-nav-item">
                        <a href="#"><i class="layui-icon layui-icon-form"></i>考核管理</a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a href="#" data-url="${pageContext.request.contextPath}/kaohe/kaohetolist"
                                   tab_id="17">考核指标</a>
                            </dd>
                            <dd>
                                <a href="#" data-url="${pageContext.request.contextPath}/kaohe/ygkhtolist"
                                   tab_id="18">员工考核
                                </a>
                            </dd>
                            <dd>
                                <a href="#" data-url="${pageContext.request.contextPath}/kaohe/jskhtolist"
                                   tab_id="19">教师考评
                                </a>
                            </dd>
                        </dl>
                    </li>

                    <li class="layui-nav-item">
                        <a href="#"><i class="layui-icon layui-icon-username"></i>问题反馈</a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a href="#" data-url="${pageContext.request.contextPath}/make/list"
                                   tab_id="20">问题反馈</a>
                            </dd>
                        </dl>
                    </li>

                    <li class="layui-nav-item">
                        <a href="#"><i class="layui-icon layui-icon-cols"></i>招生就业</a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a href="#" data-url="${pageContext.request.contextPath}/et/list"
                                   tab_id="21">招生信息</a>
                            </dd>

                        </dl>
                    </li>

                    <li class="layui-nav-item">
                        <a href="#"><i class="layui-icon layui-icon-file-b"></i>文件管理</a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a href="#" data-url="${pageContext.request.contextPath}/et/datadoclist"
                                   tab_id="23">资料文档</a>
                            </dd>
                        </dl>
                    </li>

                    <li class="layui-nav-item">
                        <a href="#"><i class="layui-icon layui-icon-chart-screen"></i>系统报表</a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a href="#" data-url="${pageContext.request.contextPath}/xt/list"
                                   tab_id="24">系统报表</a>
                            </dd>
                        </dl>
                    </li>

                    <li class="layui-nav-item">
                        <a href="#"><i class="layui-icon layui-icon-vercode"></i>安全管理</a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a href="#" data-url="${pageContext.request.contextPath}/juris/listquan"
                                   tab_id="25">权限管理</a>
                            </dd>
                        </dl>
                    </li>

                    <li class="layui-nav-item">
                        <a href="#"><i class="layui-icon layui-icon-set-fill"></i>系统设置</a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a href="#" data-url="${pageContext.request.contextPath}/juris/tojiebieshe"
                                   tab_id="26">届别设置</a>
                            </dd>
                            <dd>
                                <a href="#" data-url="${pageContext.request.contextPath}/juris/tobanji"
                                   tab_id="27">班级类别</a>
                            </dd>
                            <dd>
                                <a href="#" data-url="${pageContext.request.contextPath}/juris/tobumen"
                                   tab_id="28">部门管理</a>
                            </dd>
                            <dd>
                                <a href="#" data-url="${pageContext.request.contextPath}/juris/toyuanxi"
                                   tab_id="29">院系管理</a>
                            </dd>
                            <dd>
                                <a href="#" data-url="${pageContext.request.contextPath}/juris/tozhuanye"
                                   tab_id="30">专业管理</a>
                            </dd>
                            <dd>
                                <a href="#" data-url="${pageContext.request.contextPath}/holiday/allprod"
                                   tab_id="31">流程设置</a>
                            </dd>
                            <dd>
                                <a href="#" data-url="${pageContext.request.contextPath}/juris/todabian"
                                   tab_id="32">答辩项目</a>
                            </dd>
                        </dl>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <!-- 主体区域 -->
    <div class="layui-body layui-tab layui-tab-brief" lay-allowclose="true" lay-filter="mytab">
        <!-- 标签栏 -->
        <ul class="layui-tab-title">
            <li lay-id="home.html" class="layui-this"><i class="layui-icon layui-icon-home"></i><span
                    class="layui-nav-title">主页</span><i class="layui-icon layui-unselect layui-tab-close">ဆ</i></li>
        </ul>
        <!-- 内容区域 -->
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <iframe src="${pageContext.request.contextPath}/notice/noticeList" frameborder="0"
                        class="layui-layout-iframe"></iframe>
                <iframe src="${pageContext.request.contextPath}/index/countTask" frameborder="0"
                        class="layui-layout-iframe"></iframe>
            </div>
        </div>
    </div>
</div>
<script src="${pageContext.request.contextPath}/static/js/main.js" charset="utf-8"></script>
</body>
</html>

